var dataObj = ""

function circleModFn(data) {
    let title = data.title ? data.title : "";
    let text = data.text ? data.text : "";
    let textStr = "";
    let typeStr = "";
    let type = data.type;
    let styleStr = ""
    let id = "modBody" + data.id
    if (type == "tab") {
        textStr = "表"
    } else if (type == "api") {
        textStr = "API"
        styleStr = `background-color:#52C41A;`
    } else {
        textStr = type
    }

    dataObj = `<div class='circleBody'>
        <div div class = "circleMod"
        style = "${styleStr}" >
          <div class="circleModTitleDiv">
            <span>${textStr}</span>
          </div>
          <div class="circleModText">
            ${text}
          </div>
        </div>
      </div>`;
    return dataObj
}


export default circleModFn;